#include "game.h"

Game::Game(QWidget *parent) : QWidget(parent)
{
    board = new Board(this);
    panel = new Panel(this);
    QHBoxLayout *hbox = new QHBoxLayout(this);
    setLayout(hbox);
    hbox->addWidget(board);
    hbox->addWidget(panel);
    this->connect(panel, SIGNAL(clearBoard()), board, SLOT(clearBoard()));
    this->connect(panel, SIGNAL(setEditing(bool)), board, SLOT(setEditing(bool)));
}
